<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>
        let obj = {
            name: "dxk",
            age: 18,
            time: {
                tit: "tt"
            }
        }

        // 直接结构
        const {
            name,
            age
        } = obj

        const o = {
            ...obj,
            ...{
                save: "shan"
            }
        }
        const a={}
         Object.assign(a,obj,{bb:"maka"})
        console.log(a);


        console.log(name);
        console.log(age);
        console.log(o.time.tit = "ccc");
        console.log(obj);
    </script>
</body>

</html>